package com.yueyang.sojourn.server.service.sojourn.sequence;

import com.yueyang.sojourn.server.model.po.SojournSequence;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 序列号
 * @author Andy.yang
 * @version v1
 * @summary
 * @Copyright (c) 2019, YueYang Group All Rights Reserved.
 * @since 2020/3/20
 */
@Mapper
public interface SojournSequenceMapper {

    int updateValue(@Param("id") Long id, @Param("version") Long version);

    SojournSequence findBy(@Param("appName") String appName,@Param("sequenceName") String sequenceName);

    SojournSequence findById(Long id);
}
